#include "AST_TestSuites.h"
#include <cppunit\ui\text\TestRunner.h>

#include <iostream>

void waitOnExit() {
	//cout << "press enter to continue..." ; cin.get();
	cout << endl << "press enter to continue..."; cin.get();
};

int main() {
	std::cout << "-- AST unit tests.." << endl;

	CppUnit::TextUi::TestRunner AST_Component_tests_runner;
	AST_Component_tests_runner.addTest ( SIMPLE::AssignStmt_Data_Test::suite() );
	AST_Component_tests_runner.addTest ( SIMPLE::CallStmt_Data_Test::suite() );
	AST_Component_tests_runner.addTest ( SIMPLE::WhileStmt_Test::suite() );
	AST_Component_tests_runner.addTest ( SIMPLE::IfStmt_Test::suite() );

	AST_Component_tests_runner.addTest ( SIMPLE::AST_coreTest::suite() );
	AST_Component_tests_runner.addTest ( SIMPLE::AST_coreTest_New_statement::suite() );


	AST_Component_tests_runner.run();
	waitOnExit();
	return 0;
};